package 设计模式.建造者模式;

public class Enginner {
    private CarBuilder carBuilder;

    public void setCarBuilder(CarBuilder carBuilder) {
        this.carBuilder = carBuilder;
    }

    public  Car makeCar(String basePlate,String frame,String door){
        carBuilder.buildBasePlate(basePlate);
        carBuilder.buildFrame(frame);
        carBuilder.buildDoor(door);

        return carBuilder.makeCar();
    }
}
